<template>
	<view :style="themeColor">
		<view class="page">
			<view
				class="flex flex-wrap align-center justify-between benben-position-layout flex ordersScramble_flex_0"
				:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }"
			>
				<view
					class='flex flex-wrap align-center ordersScramble_fd0_0'
					@tap.stop="handleJumpDiy"
					data-type="back"
					data-url="1"
				>
					<text class='fu-iconfont2  ordersScramble_fd0_0_c0'>&#xe794;</text>
				</view>
				<text
					class='ordersScramble_fd0_1'
					style="font-family: Alimama DongFangDaKai, Alimama DongFangDaKai;"
				>超值拼单</text>
				<view class='flex flex-wrap align-center ordersScramble_fd0_0'>
				</view>

			</view>
			<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
			<!---flex布局flex布局开始-->
			<view class="flex flex-direction flex-wrap align-stretch benben-flex-layout ordersScramble_flex_1">
				<template v-for='(item,key0) in dataList'>
					<view
						class='flex flex-wrap align-center ordersScramble_fd1_0'
						@tap.stop="handleJumpDiy"
						data-type="navigateTo"
						:data-url="`/?goods_id=${item.goods_id}&activity_id=${item.activity_id}&sku_id=${item.sku_id}`"
						:key='key0'
					>
						<image
							class='ordersScramble_fd1_0_c0'
							mode="aspectFill"
							:src='item.thumb'
						></image>
						<view class='flex flex-direction flex-wrap align-stretch flex-sub ordersScramble_fd1_0_c1'>
							<text class='ordersScramble_fd1_0_c1_c0'>{{item.name}}</text>
							<view class='flex flex-wrap align-center'>
								<view class='flex benben-progress-bar ordersScramble_fd1_0_c1_c1_c0'>
									<view
										class='benben-progress-bar-center ordersScramble_progress1_fd1_0_c1_c1_c0'
										:style="{width: item.rate+'%'}"
									></view>

								</view>
								<view class='flex flex-wrap align-center ordersScramble_fd1_0_c1_c1_c1'>
									<text>{{item.rate}}</text>
									<text>%</text>
								</view>
							</view>
							<view class='flex flex-wrap align-center ordersScramble_fd1_0_c1_c2'>
								<text class='ordersScramble_fd1_0_c1_c2_c0'>{{item.sales_sum}}</text>
								<text class='ordersScramble_fd1_0_c1_c2_c0'>人参与拼单</text>
							</view>
							<view class='flex flex-wrap align-center'>
								<view class='flex flex-direction flex-wrap align-stretch flex-sub'>
									<view class='flex flex-wrap align-center'>
										<text class='ordersScramble_fd1_0_c1_c3_c0_c0_c0'>￥</text>
										<text class=' ordersScramble_fd1_0_c1_c3_c0_c0_c1'>
											<text class=' ordersScramble_price1_fd1_0_c1_c3_c0_c0_c1'>{{ item.activity_price | frontPrice }}</text>
											<text class=' ordersScramble_price2_fd1_0_c1_c3_c0_c0_c1'>{{ item.activity_price | laterPrice }}</text>
										</text>
									</view>
									<view class='flex flex-wrap align-center'>
										<text class='ordersScramble_fd1_0_c1_c3_c0_c1_c0'>¥ </text>
										<text class='ordersScramble_fd1_0_c1_c3_c0_c1_c0'>{{item.shop_price}}</text>
									</view>
								</view>
								<button class='ordersScramble_fd1_0_c1_c3_c1'>马上拼</button>
							</view>
						</view>
					</view>
				</template>
				<fu-empty
					:pagingListLoadedAll="pagingListLoadedAll"
					:pagingListNoListData="pagingListNoListData"
					:listDataLength="listDataLength"
					:isLoadInit="isLoadInit"
				></fu-empty>
			</view>

			<!---flex布局flex布局结束-->


		</view>
	</view>
</template>
<script>
	import pagingList from '@/common/mixin/paging_list.js';
	import { validate } from '@/common/utils/validate.js'
	export default {
		components: {},
		mixins: [pagingList],

		data() {
			return { "minixPagingListsApi": "", "pageingListApiMethod": "", "allowOnloadGetList": false, "dataList": [] };
		},
		computed: {
			themeColor() {
				return this.$store.getters.themeColor
			},

		},
		watch: {},
		onLoad(options) {
			this.groupProductListFunc()
		},
		onUnload() {

		},
		onReady() {

		},
		onShow() {

		},
		onHide() {

		},
		onResize() {

		},
		onPullDownRefresh() {
			this.groupProductListFunc()
		},
		onReachBottom(e) {

		},
		onPageScroll(e) {

		},
		methods: {
			//拼团商品列表
			groupProductListFunc() {
				this.minixPagingListsApi = global.apiUrls.post641eb8b1ee7fe;
				this.pageingListApiMethod = 'post';
				this.allowOnloadGetList = false;
				this.pagingListPostDataContent = {}
				this.listData = [];
				this.dataList = this.listData;
				this.pagingListToggle();
			},
			pagingListPostData() {
				return this.pagingListPostDataContent
			}
		}
	};
</script>
<style
	lang="scss"
	scoped
>
	.page {
		width: 100vw;
		overflow-x: hidden;
		min-height: calc(100vh - var(--window-bottom));
		background: var(--benbenbgColor1);
		background-size: 100% auto;
	}

	.ordersScramble_flex_0 {
		background: var(--benbenbgColor1);
		width: 750rpx;
		height: 88rpx;
		overflow: hidden;
		z-index: 10;
		top: 0rpx;
		background-size: 100% auto;
	}

	.ordersScramble_fd0_1 {
		color: #333333;
		font-size: 36rpx;
		font-weight: 600;
		line-height: 50rpx;
	}

	.ordersScramble_fd0_0_c0 {
		margin: 0rpx 0rpx 0rpx 32rpx;
		font-size: 36rpx;
	}

	.ordersScramble_fd0_0 {
		width: 100rpx;
		height: 88rpx;
	}

	.ordersScramble_flex_1 {
		padding: 0rpx 32rpx 0rpx 32rpx;
	}

	.ordersScramble_fd1_0_c1_c3_c1 {
		background: var(--benbenbgColor7);
		border-radius: 28rpx 28rpx 28rpx 28rpx;
		font-size: 28rpx;
		color: var(--benbenFontColor3);
		width: 152rpx;
		height: 56rpx;
		line-height: 56rpx;
	}

	.ordersScramble_fd1_0_c1_c3_c0_c1_c0 {
		color: var(--benbenFontColor2);
		font-size: 24rpx;
		font-weight: 400;
		line-height: 33rpx;
		text-decoration: line-through;
	}

	.ordersScramble_price2_fd1_0_c1_c3_c0_c0_c1 {
		font-size: 24rpx;
	}

	.ordersScramble_price1_fd1_0_c1_c3_c0_c0_c1 {
		font-size: 40rpx;
	}

	.ordersScramble_fd1_0_c1_c3_c0_c0_c1 {
		color: var(--benbenFontColor7);
		font-weight: 600;
	}

	.ordersScramble_fd1_0_c1_c3_c0_c0_c0 {
		color: var(--benbenFontColor7);
		font-size: 24rpx;
		font-weight: 700;
		line-height: 30rpx;
		margin: 6rpx 0rpx 0rpx 0rpx;
	}

	.ordersScramble_fd1_0_c1_c2_c0 {
		color: var(--benbenFontColor2);
		font-size: 20rpx;
		font-weight: 400;
		line-height: 33rpx;
	}

	.ordersScramble_fd1_0_c1_c2 {
		margin: 8rpx 0rpx 4rpx 0rpx;
	}

	.ordersScramble_fd1_0_c1_c1_c1 {
		margin: 0rpx 0rpx 0rpx 24rpx;
		color: #999999;
		font-size: 20rpx;
		line-height: 28rpx;
		font-weight: 400;
	}

	.ordersScramble_progress1_fd1_0_c1_c1_c0 {
		background: var(--benbenbgColor2);
		border-radius: 10rpx 0rpx 0rpx 10rpx;
	}

	.ordersScramble_fd1_0_c1_c1_c0 {
		background: rgba(219, 219, 219, 1);
		width: 221rpx;
		height: 8rpx;
		border-radius: 16rpx 16rpx 16rpx 16rpx;
		background-size: 100% auto !important;
	}

	.ordersScramble_fd1_0_c1_c0 {
		color: #333333;
		font-size: 28rpx;
		font-weight: 600;
		line-height: 38rpx;
		-webkit-line-clamp: 2;
		overflow: hidden;
		text-overflow: ellipsis;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		margin: 0rpx 0rpx 8rpx 0rpx;
	}

	.ordersScramble_fd1_0_c1 {
		margin: 0rpx 0rpx 0rpx 24rpx;
	}

	.ordersScramble_fd1_0_c0 {
		width: 246rpx;
		height: 246rpx;
		border-radius: 16rpx;
	}

	.ordersScramble_fd1_0 {
		border-bottom: 1px solid #eee;
		background: #FFFFFF;
		padding: 32rpx 0rpx 32rpx 0rpx;
		margin: 0rpx 0rpx 16rpx 0rpx;
	}
</style>